package com.testfileupload.uploadimg.design.decorate.define;

public class ConcreateDecorator1 extends Decorator{
    public ConcreateDecorator1(Component component) {
        super(component);
    }
    //定义修饰方法
    public void method1(){
        System.out.println("method1修饰");
    }
    //重写

    @Override
    public void operate() {
        this.method1();
        super.operate();
    }
}
